<script setup lang="ts">
const { position = "top", offset = 0 } = defineProps<{
  position?: "top" | "bottom";
  offset?: number;
}>();
</script>

<template>
  <view class="sticky z-20" :style="{ [position]: offset + 'rpx' }">
    <slot />
  </view>
</template>
